# coding:utf-8
from django.conf.urls import url
from AppStudent import views

app_name = 'AppStudent'
urlpatterns = [
    url(r'^StudentListView/$', views.StudentListView.as_view(),name='student_list'),   # 前往所有学生的网页,分页显示
    url(r'^add_page/$', views.add_page),   # 前往添加学生的网页
    url(r'^add_student/$', views.add_student),     # 添加学生的操作
    url(r'^update_student/$', views.update_student),   # 修改学生的操作
    url(r'^getbygrade/$',views.getbygrade),     # 根据 班级查找学生的操作
    url(r'^getbyname/$', views.getbyname),   # 根据 name查找学生的操作
    # 根据 id 查找学生的操作视图getbyid(request,stu_id),(?P<stu_id>[0-9]*)指给参数stu_id传数字参数。
    url(r'^getbyid/(?P<stu_id>[0-9]*)/$', views.getbyid),
    url(r'^delete_student/(?P<stu_id>[0-9]*)/$',views.delete_student),   # 删除学生的操作
    url(r'^add_grade/$',views.add_grade),
    url(r'^show_grades/$',views.show_grades),

]




